/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mavenrentcars.service;

import com.mavenrentcars.exception.ViewException;
import java.util.List;

/**
 *
 * @author dbukhanets
 */
public interface GenericService<T, K> {

    public T save(T model) throws ViewException;

    public T get(K id) throws ViewException;

    public void remove(K id) throws ViewException;

    public List<T> getAll() throws ViewException;
}
